export class Tools {
    static #instance: Tools = null;
    private constructor() {}
    public static get instance(): Tools {
        if (!Tools.#instance) Tools.#instance = new Tools();
        return Tools.#instance;
    }

    public isEnemy(name: string): boolean {
        return name.startsWith('enemy');
    }
    public isPlayer(name: string): boolean {
        return name.startsWith('player');
    }
    public isBullet(name: string): boolean {
        return name.startsWith('bullet');
    }
}
